<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>生成维修项目 - 缺陷维修建议 - 管体缺陷</title><link rel="stylesheet" href="${pageContext.request.contextPath}/static/js/plugin/datetimepicker/jquery.datetimepicker.min.css"></head>
<body>
    <!-- post data -->
    <div id="JQ_post_data" class="hidden">
        {"instTaskId":"${param.instTaskId}","pipeName":"${param.pipeLineName}","pipeId":"${param.pipeId}","beginId":"${param.beginId}","beginMile":"${param.beginMileage}","beginName":"${param.beginName}","endId":"${param.endId}","endMile":"${param.endMileage}","endName":"${param.endName}","planRepairType":"${param.planRepairType}","checkTime":"${param.checkTime}","latestBeginTime":"${param.latestBeginTime}","latestEndTime":"${param.latestEndTime}","defectId":${defectList}}
    </div>
    <!-- content-body -->
    <div class="main-inner">
        <div class="content-inner">
            <div class="meta-head">
                <h3><i class="zy-jianyi-icon"></i>缺陷维修建议 <i class="zy-url-arrow"></i> 生成维修项目</h3>
            </div>
            <div class="zy-wind-line">
                <hr>
            </div>
            <!-- 将隐藏起来的缺陷表单 -->
            <div id="JQ_form_table">
            <!-- 新建 - 项目名称  -->
                <div class="zy-form-line">
                    <div class="zy-input-group w-31">
                        <div class="zy-input-meta"><i class="zy-requird-icon"></i>项目名称</div>
                        <div class="zy-input-inner">
                            <input id="JQ_project_name" type="text" class="zy-i-input" name="name" autocomplete="off">
                        </div>
                    </div>
                    <div class="zy-sp"></div>
                    <div class="zy-input-group w-31">
                        <div class="zy-input-meta"><i class="zy-requird-icon"></i>施工单位</div>
                        <div class="zy-input-inner">
                            <input id="JQ_company" type="text" class="zy-i-input" name="assemblyCompany" autocomplete="off">
                        </div>
                    </div>
                    <div class="zy-sp"></div>
                    <div class="zy-input-group w-14">
                        <div class="zy-input-meta">开工时间</div>
                        <div class="zy-input-inner">
                            <input id="JQ_begin_date" type="text" class="zy-i-input zy-i-input-date" name="planStartDate">
                        </div>
                    </div>
                    <div class="zy-sp"></div>
                    <div class="zy-input-group w-14">
                        <div class="zy-input-meta">峻工时间</div>
                        <div class="zy-input-inner">
                            <input id="JQ_end_date" type="text" class="zy-i-input zy-i-input-date" name="planCompletionDate">
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="zy-form-line">
                    <div class="zy-input-group w-31">
                        <div class="zy-input-meta">管道名称</div>
                        <div class="zy-select-inner">
                            <blockquote id="JQ_pipe_name" class="bk-select"></blockquote>
                        </div>
                    </div>
                    <div class="zy-sp"></div>
                    <div class="zy-input-group w-31">
                        <div class="zy-input-meta">起点位置</div>
                        <div class="zy-select-inner">
                            <blockquote id="JQ_begin_name" class="bk-select"></blockquote>
                        </div>
                    </div>
                    <div class="zy-sp"></div>
                    <div class="zy-input-group w-31">
                        <div class="zy-input-meta">终点位置</div>
                        <div class="zy-select-inner">
                            <blockquote id="JQ_end_name" class="bk-select"></blockquote>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <!-- 新建 - 工作量  -->
                <form id="JQ_work_form">
                    <div class="zy-form-line">
                        <div class="meta-info">
                            <div class="meta-line">
                                <div>主要工作量：</div>
                                <label>防腐层修复<span><input type="text" value="0" class="zy-s-input zy-verify" name="coatRepair" data-verify="{type:'number',range:[0,10000],title:'防腐层修复'}" autocomplete="off"></span>处</label>
                                <label>复合材料补强修复<span><input type="text" value="0" class="zy-s-input zy-verify" name="compositesRepair" data-verify="{type:'number',range:[0,10000],title:'复合材料补强修复'}" autocomplete="off"></span>处</label>
                                <label>钢质环氧套筒补强修复<span><input type="text" value="0" class="zy-s-input zy-verify" name="epoxySleeveRepair" data-verify="{type:'number',range:[0,10000],title:'钢质环氧套筒补强修复'}" autocomplete="off"></span>处</label>
                                <label>A型套筒补强修复<span><input type="text" value="0" class="zy-s-input zy-verify" name="atypeSleeveRepair" data-verify="{type:'number',range:[0,10000],title:'A型套筒补强修复'}" autocomplete="off"></span>处</label>
                                <label>B型套筒补强修复<span><input type="text" value="0" class="zy-s-input zy-verify" name="btypeSleeveRepair" data-verify="{type:'number',range:[0,10000],title:'B型套筒补强修复'}" autocomplete="off"></span>处</label>
                                <label>换管<span><input type="text" value="0" class="zy-s-input zy-verify" name="pipeReplacement" data-verify="{type:'number',range:[0,10000],title:'换管'}" autocomplete="off"></span>处</label>
                                <label>开挖验证<span><input type="text" value="0" class="zy-s-input zy-verify" name="excavationVerification" data-verify="{type:'number',range:[0,10000],title:'开挖验证'}" autocomplete="off"></span>处</label>
                                <label>其它修复<span><input type="text" value="0" class="zy-s-input zy-verify" name="otherRepairWf" data-verify="{type:'number',range:[0,10000],title:'其他修复'}" autocomplete="off"></span>处</label>
                                <label>合计<span><input type="text" value="0" class="zy-s-input zy-verify" name="total" readonly="readonly"></span>处</label>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="zy-form-line">
                <p>
                    <span>您已选择 <span id="JQ_defect_count">-</span> 个缺陷点</span>&nbsp;&nbsp;&nbsp;&nbsp;
                    <button class="zy-button-s zy-create-s" id="JQ_view_defect" type="button"><i class="zy-create-icon"></i>查看缺陷列表</button>&nbsp;&nbsp;&nbsp;
                    <button class="zy-button-s zy-delete-s hidden" id="JQ_delete_defect" type="button"><i class="zy-delete-icon"></i>删除</button>
                </p>
            </div>
            <!-- 被隐藏起来的缺陷列表 -->
            <div id="JQ_form_list" class="hidden">
                <!-- 缺陷列表 - 01 -->
                <div class="zy-table">
                    <table cellspacing="0" cellpadding="0" class="zy-datatable" id="JQ_selected_defect">
                        <thead>
                        <tr>
                            <th width="5%"><i class="zy-checkbox-all" data-chk="false"></i></th>
                            <th width="15%" title="管道名称">管道名称</th>
                            <th width="10%" title="缺陷类型">缺陷类型</th>
                            <th width="10%" title="绝对距离(m)">绝对距离(m)</th>
                            <th width="10%" title="长/宽/深(mm)">长/宽/深(mm)</th>
                            <th width="10%" title="时钟位置">时钟位置</th>
                            <th width="5%" title="ERF">ERF</th>
                            <th width="10%" title="维修建议">维修建议</th>
                            <th width="10%" title="最迟维修时间">最迟维修时间</th>
                            <th width="10%" title="建议维修方法">建议维修方法</th>
                            <th width="5%" title="详情">详情</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!-- 添加更多缺陷 -->
                <div class="zy-form-line">
                    <button id="JQ_add_more" class="zy-button zy-add-more" type="button">添加更多缺陷<i class="zy-arrow-angle-icon"></i></button>
                    <br>
                    <br>
                </div>
                <div id="JQ_more_list" class="hidden">
                    <div class="zy-form-line">
                        <div class="zy-form-line">
                            <div class="zy-input-group w-30">
                                <div class="zy-input-meta">管道名称</div>
                                <div class="zy-select-inner">
                                    <blockquote id="JQ_pipe_gather" class="bk-select"></blockquote>
                                </div>
                            </div>
                            <div class="zy-sp"></div>
                            <div class="zy-input-group w-15">
                                <div class="zy-input-meta">起点位置</div>
                                <div class="zy-select-inner">
                                    <blockquote id="JQ_begin_gather" class="bk-select"></blockquote>
                                </div>
                            </div>
                            <div class="zy-sp"></div>
                            <div class="zy-input-group w-15">
                                <div class="zy-input-meta">终点位置</div>
                                <div class="zy-select-inner">
                                    <blockquote id="JQ_end_gather" class="bk-select"></blockquote>
                                </div>
                            </div>
                            <div class="zy-sp"></div>
                            <div class="zy-input-group w-30">
                                <div class="zy-input-meta">缺陷类型</div>
                                <div class="zy-select-inner">
                                    <blockquote id="JQ_defect_type" class="bk-select"><abbr></abbr></blockquote>
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="zy-form-line">
                        <div class="zy-input-group w-13">
                            <div class="zy-input-meta">建议最迟维修时间</div>
                            <div class="zy-input-inner">
                                <input id="JQ_repair_date_begin" type="text" class="zy-i-input zy-i-input-date" autocomplete="off">
                            </div>
                        </div>
                        <div class="zy-sp zy-sp-bg"></div>
                        <div class="zy-input-group w-13">
                            <div class="zy-input-meta">&nbsp;</div>
                            <div class="zy-input-inner">
                                <input id="JQ_repair_date_end" type="text" class="zy-i-input zy-i-input-date" autocomplete="off">
                            </div>
                        </div>
                        <div class="zy-sp"></div>
                        <div class="zy-input-group w-15">
                            <div class="zy-input-meta">&nbsp;</div>
                            <div class="zy-checkbox-group">
                                <label>
                                    <i id="JQ_erf" class="zy-checkbox" style="margin-bottom: -2px;"></i> ERF≥1.0
                                </label>
                            </div>
                        </div>
                        <div class="zy-sp"></div>
                        <div class="zy-input-group w-15">
                            <div class="zy-input-meta">&nbsp;</div>
                            <div class="zy-button-inner">
                                <button id="JQ_search" class="zy-button zy-search" type="button"><i class="zy-search-icon"></i>查询</button>
                            </div>
                        </div>
                        <div class="zy-input-group r">
                            <div class="zy-input-meta">&nbsp;</div>
                            <div class="zy-button-inner">
                                <button id="JQ_add" class="zy-button zy-search" type="button">+&nbsp;&nbsp;添加</button>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!-- 缺陷列表 - 02 -->
                    <div class="zy-table">
                        <table cellspacing="0" cellpadding="0" class="zy-datatable" id="JQ_list_gather">
                            <thead>
                            <tr>
                                <th width="5%"><i class="zy-checkbox-all" data-chk="false"></i></th>
                                <th width="15%" title="管道名称">管道名称</th>
                                <th width="10%" title="缺陷类型">缺陷类型</th>
                                <th width="10%" title="绝对距离(m)">绝对距离(m)</th>
                                <th width="10%" title="长/宽/深(mm)">长/宽/深(mm)</th>
                                <th width="10%" title="时钟位置">时钟位置</th>
                                <th width="5%" title="ERF">ERF</th>
                                <th width="10%" title="维修建议">维修建议</th>
                                <th width="10%" title="最迟维修时间">最迟维修时间</th>
                                <th width="10%" title="建议维修方法">建议维修方法</th>
                                <th width="5%" title="详情">详情</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="zy-wind-line t-r">
                <button id="JQ_save_task" class="zy-button zy-submit" type="button"><i class="zy-submit-icon"></i>保存</button>&nbsp;&nbsp;&nbsp;&nbsp;
                <button id="JQ_release_task" class="zy-button zy-release" type="button"><i class="zy-release-icon"></i>发布</button>&nbsp;&nbsp;&nbsp;&nbsp;
                <button id="JQ_goback_task" class="zy-button zy-goback hidden" type="button"><i class="zy-goback-icon"></i>返回上一步</button>&nbsp;&nbsp;&nbsp;
                <button id="JQ_goback_list" class="zy-button zy-goback" type="button"><i class="zy-goback-icon"></i>返回</button>
            </div>
        </div>
    </div>
    <!-- plugin -->
    <script src="${pageContext.request.contextPath}/static/js/plugin/datetimepicker/jquery.datetimepicker.full.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/plugin/datatables/js/jquery.dataTables.min.js"></script>
    <!-- ui -->
    <script src="${pageContext.request.contextPath}/static/js/ui/ui-main.js"></script>
    <!-- base -->
    <script src="${pageContext.request.contextPath}/static/js/controller/base/base.controller.js"></script>
    <!-- api -->
    <script src="${pageContext.request.contextPath}/static/js/controller/api/defect.api.js"></script>
    <!-- controller -->
    <script src="${pageContext.request.contextPath}/static/js/controller/defect/adivse/adviseProject.controller.js"></script>
</body>
</html>
